home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / ViewKit_dev.idb / usr / share / src / ViewKit / Applications / PhoneBook / Entries.h.z / Entries.h
Encoding:
C/C++ Source or Header  |  1996-09-20  |  2.2 KB  |  60 lines

  1. ////////////////////////////////////////////////////////////////////////////////
  2. ///////   Copyright 1992, Silicon Graphics, Inc.  All Rights Reserved.   ///////
  3. //                                                                            //
  4. // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;     //
  5. // the contents of this file may not be disclosed to third parties, copied    //
  6. // or duplicated in any form, in whole or in part, without the prior written  //
  7. // permission of Silicon Graphics, Inc.                                       //
  8. //                                                                            //
  9. // RESTRICTED RIGHTS LEGEND:                                                  //
  10. // Use,duplication or disclosure by the Government is subject to restrictions //
  11. // as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data     //
  12. // and Computer Software clause at DFARS 252.227-7013, and/or in similar or   //
  13. // successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -    //
  14. // rights reserved under the Copyright Laws of the United States.             //
  15. //                                                                            //
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #ifndef ENTRIES_H
  18. #define ENTRIES_H
  19.  
  20. #include <Vk/VkComponent.h>
  21.  
  22. class VkTabPanel;
  23. class Info;
  24. class Entry;
  25. class Entries;
  26. class VkPopupMenu;
  27.  
  28. class Entries : public VkComponent {
  29.   public:
  30.     Entries(const char *name, Widget parent, Info *info);
  31.     ~Entries();
  32.     
  33.     const char *className();
  34.  
  35.     void display(char *range);
  36.     void reselect();
  37.     void postMenu(Entry *entry, XEvent *event);
  38.  
  39.     XmFontList normalFont() { return buttonFont; }
  40.  
  41.   protected:
  42.     void deleteAll();
  43.     void addDisplay(char letter);
  44.     Entry *addEntry(const char *name);
  45.     void editMenu();
  46.     void deleteMenu();
  47.  
  48.     static void editCallback(Widget w, XtPointer clientData, XtPointer callData);
  49.     static void deleteCallback(Widget w, XtPointer clientData, XtPointer callData);
  50.  
  51.     Info *info;
  52.     int numEntries, sizeEntries, realEntries;
  53.     Entry **entries, *menuEntry;
  54.     VkPopupMenu *entryPopup;
  55.     XmFontList buttonFont, labelFont;
  56.     char *lastRange;
  57. };
  58.  
  59. #endif
  60.